package com.mmd.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * table --> mmd_bill_record
 * remarks --> 账单表
 * columns --> billId,uid,createTime,userType,businessNo,serNo,type,amcount,totalAmount,remark
 */
@ApiModel(value = "mmd_bill_record",description = "账单表")
public class MmdBillRecord implements Serializable {
    /**
     * billId
     * 
     */
    @ApiModelProperty(value="billId",name="")
    private Long billId;

    /**
     * uid
     * 用户ID
     */
    @ApiModelProperty(value="uid",name="用户ID")
    private Long uid;

    /**
     * createTime
     * 交易时间
     */
    @ApiModelProperty(value="createTime",name="交易时间")
    private Date createTime;

    /**
     * userType
     * 账单所属用户类型(1=用户 0=供应商)
     */
    @ApiModelProperty(value="userType",name="账单所属用户类型(1=用户 0=供应商)")
    private Integer userType;

    /**
     * businessNo
     * 业务编号
     */
    @ApiModelProperty(value="businessNo",name="业务编号")
    private String businessNo;

    /**
     * serNo
     * 流水号
     */
    @ApiModelProperty(value="serNo",name="流水号")
    private String serNo;

    /**
     * type
     * 交易类型(1-消费 2-充值 3-客户下单)
     */
    @ApiModelProperty(value="type",name="交易类型(1-消费 2-充值 3-客户下单)")
    private Integer type;

    /**
     * amcount
     * 交易金额
     */
    @ApiModelProperty(value="amcount",name="交易金额")
    private BigDecimal amcount;

    /**
     * totalAmount
     * 最新金额
     */
    @ApiModelProperty(value="totalAmount",name="最新金额")
    private BigDecimal totalAmount;

    /**
     * remark
     * 备注
     */
    @ApiModelProperty(value="remark",name="备注")
    private String remark;

    private static final long serialVersionUID = 1L;

    public Long getBillId() {
        return billId;
    }

    public void setBillId(Long billId) {
        this.billId = billId;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getBusinessNo() {
        return businessNo;
    }

    public void setBusinessNo(String businessNo) {
        this.businessNo = businessNo == null ? null : businessNo.trim();
    }

    public String getSerNo() {
        return serNo;
    }

    public void setSerNo(String serNo) {
        this.serNo = serNo == null ? null : serNo.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getAmcount() {
        return amcount;
    }

    public void setAmcount(BigDecimal amcount) {
        this.amcount = amcount;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append(", billId=").append(billId);
        sb.append(", uid=").append(uid);
        sb.append(", createTime=").append(createTime);
        sb.append(", userType=").append(userType);
        sb.append(", businessNo=").append(businessNo);
        sb.append(", serNo=").append(serNo);
        sb.append(", type=").append(type);
        sb.append(", amcount=").append(amcount);
        sb.append(", totalAmount=").append(totalAmount);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }
}